//
//  LDSIFTTTEditSectionView.m
//  LDSSmartHome
//
//  Created by leedarson on 2017/11/7.
//  Copyright © 2017年 leedarson. All rights reserved.
//

#import "LDSIFTTTEditSectionView.h"
#import "LDSIFTTTSectionModel.h"
@interface LDSIFTTTEditSectionView ()
@end

@implementation LDSIFTTTEditSectionView

- (void)viewSetup {
    [super viewSetup];
}

- (void)frameSetup {
    [super frameSetup];
}

- (void)setModel:(LDSIFTTTSectionModel *)model {
    [super setModel:model];
    if (model) {
        if (model.blueColor) {
            self.titleName.textColor = [UIColor lightTextColor];
            self.detailText.textColor = [UIColor lightTextColor];
            self.backgroundColor = [UIColor colorWithRed:2/255.0f green:155/255.0f blue:231/255.0f alpha:1.0f];
        }else {
            self.titleName.textColor = [UIColor darkTextColor];
            self.detailText.textColor = [UIColor darkTextColor];
            self.backgroundColor = [UIColor whiteColor];
        }
    }
}

@end
